package com.yubest.designpattern.struct.decorator;

/**
 * 牛奶
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 15:01
 */
public class Milk extends Condiment {

    public Milk(Beverage beverage) {
        super(beverage);
    }

    @Override
    public double cost() {
        return 1 + getBeverage().cost();
    }
}
